use actix_web::web::{self, ServiceConfig};
use actix_web::{get, post};
use crate::{error::AppErr, server::web::codec::Void};

#[get("/poll")]
async fn poll() -> Result<Void, AppErr> {



    Ok(Void)
}

#[post("result")]
async fn result() -> Result<Void, AppErr> {

    Ok(Void)
}


pub fn register(cfg: &mut ServiceConfig) {
    let scope = web::scope("device2")
        .service(poll)
        .service(result)
        ;
    cfg.service(scope);
}





